﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using AmuTools;
using app.Api;

namespace app.Models
{
    /*
        反馈表
    */

    [Model(TableName = "t_feedback", PrimaryKey = "id", IdentityInsert = true)]
    public class Feedback
    {
        [Field(Description = "反馈唯一标识符")]
        public int id { get; set; }
        [Field(Description = "反馈提交者id")]
        public string member_id { get; set; }
        [Field(Description = "反馈人姓名")]
        public string name { get; set; }
        [Field(Description = "反馈人联系电话")]
        public string phone { get; set; }
        [Field(Description = "反馈人email")]
        public string email { get; set; }

        [Field(DataType = "nvarchar(200)",Description ="反馈内容")]
        public string content { get; set; }

        [Field(DataType = "char(13)", Description = "反馈创建时间")]
        public string create_time { get; set; }
        
        [Field(Default = 1,Description = "反馈状态：1未处理，2已处理")]
        public int? status { get; set; }

        [Field(Webable = false)]
        public int is_delete { get; set; }
        [Field(Description = "反馈处理人")]
        public string processor { get; set; }
        [Field(DataType = "char(13)", Description = "反馈处理时间")]
        public string disposs_time { get; set; }


    }

    // 反馈状态
    enum FEEDBACK_SATTUS
    {
        ALL = 0,
        UNPROCESSED = 1,
        PROCESSED = 2


    }
}